package org.king.util.logUtil;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ConsoleLogUtil {
    public void error(Throwable e, String msg) {
        log.error("Resolve [{}: {}]",e.getClass().getSimpleName(), msg);
    }

    public void warn(Throwable e, String msg) {
        log.warn("Resolve [{}: {}]",e.getClass().getSimpleName(), msg);
    }
}
